//
//  PrivateMessage.h
//  百车易车险
//
//  Created bychenxu on 14-8-29.
//  Copyright (c) 2014年 chenxu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"
typedef NS_ENUM(NSInteger, PrivateMessageSendStatus) {
    PrivateMessageStatusSendSucess = 0,
    PrivateMessageStatusSending,
    PrivateMessageStatusSendFail
};
typedef NS_ENUM(NSInteger, sender) {
    me = 0,
    opposite
};

@interface PrivateMessage : NSObject<NSCoding,NSCopying>

@property (readwrite, nonatomic, strong) NSString *Talk, *extra;
@property (readwrite, nonatomic, strong) NSString *username;
@property sender sender;//同时要有发送者、接受者

@property (readwrite, nonatomic, strong) NSNumber *count, *unreadCount, *id, *read_at, *status;
@property (readwrite, nonatomic, strong) NSDate *created_at;
@property (assign, nonatomic) PrivateMessageSendStatus sendStatus;


+ (instancetype)privateMessageWithObj:(id)obj andSender:(sender)sender andusername:(NSString*)username;




@end
